package cn.edu.scau.cmi.liweihang.composite.safe;

public class Person implements Component{

	private String name;
	
	private Team team;
	@Override
	public String getName() {
		return name;
	}

	@Override
	public Team getTeam() {
		return team;
	}

	@Override
	public void setName(String name) {
		this.name=name;
		
	}

	@Override
	public void setTeam(Component team) {
		this.team=(Team) team;
	}
}
